const install = (Vue, vm) => {

	// 参数配置对象
	const config = vm.vuex_config;
	vm.$u.api = {
		// // 登录接口
		// login: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/user/login', params),
		// // 发送验证码
		// sendCode: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/user/captcha/send', params),
		// // 按条件查询广告信息接口
		// adList: (params = {}) => vm.$u.postJson(config.adminPath + '/security/ad/list', params),
		// // 应用公告列表查询接口
		// appNoticeList: (params = {}) => vm.$u.postJson(config.adminPath + '/security/appNotice/list', params),
		// // 授权应用功能维护列表信息接口
		// listForApp: (params = {}) => vm.$u.postJson(config.adminPath +
		// 	'/security/authorizedAppFunction/listForApp', params),
		// // 意图类型集合
		// allIntentions: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allIntentions', params),
		// // 教育情况集合
		// allEducationTypes: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allEducationTypes',
		// 	params),

		// // 希望何时结婚集合
		// allHopeMarriageTimes: (params = {}) => vm.$u.postJson(config.adminPath +
		// 	'/member/enum/allHopeMarriageTimes', params),
		// // 是否想要孩子集合
		// allHopeWantChilds: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allHopeWantChilds',
		// 	params),
		// // 有没有孩子集合
		// allHopeHasChilds: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allHopeHasChilds',
		// 	params),
		// // 体型集合
		// allHopeShapes: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allHopeShapes', params),
		// // 是否喝酒集合
		// allHopeDrinks: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allHopeDrinks', params),
		// // 是否吸烟集合
		// allHopeSmokes: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allHopeSmokes', params),
		// // 意向客户分页查询
		// customerPage: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/page', params),
		// // 查询所有授权区域列表
		// allMallAndStore: (params = {}) => vm.$u.postJson(config.adminPath +
		// 	'/base/store/authorized/allMallAndStore', params),
		// // 查询门店授权店铺列表
		// getcurlist: (params = {}) => vm.$u.postJson(config.adminPath + '/base/store/authorized/list', params),
		// // 证件类型集合
		// allCertificateTypes: (params = {}) => vm.$u.postJson(config.adminPath +
		// 	'/member/enum/allCertificateTypes', params),
		// // 情感状态集合
		// allMarriageStates: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allMarriageStates',
		// 	params),
		// // 小程序意向客户新增接口
		// addcustomer: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/add', params),
		// // 客户期望对象资料更新
		// updatehope: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/hope/update',
		// 	params),
		// // 年收入集合
		// allYearIncomes: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allYearIncomes',
		// 	params),
			
		// 	// 最小年收入集合
		// allMinYearIncomes: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allMinYearIncomes',
		// 	params),	
		// 	// 最小月收入集合
		// 	allMinMonthIncomes: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allMinMonthIncomes',
		// 		params),
			
		// // 月收入集合
		// allMonthIncomes: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allMonthIncomes',
		// 	params),
		// // // 客户期望对象资料更新
		// // updatehope: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/hope/update',
		// // 	params),
		// // 性别集合
		// allGenders: (params = {}) => vm.$u.postJson(config.adminPath + '/member/enum/allGenders', params),
		// // 小程序意向客户作废
		// cancelCustomer: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/cancel',
		// 	params),
		
		// // 小程序意向客户手机号查询
		// getmobile: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/mobile/get', params),
		// // 验证码发送
		// captcha: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/captcha/send', params),
		// // 小程序意向客户转APP
		// toApp: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/toApp', params),
		// // 小程序意向客户编辑数据
		// detailForUpdate: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/detailForUpdate', params),
		// // 客户期望对象资料详情编辑数据
		// hopedetailForUpdate: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/hope/detailForUpdate', params),
		// // 小程序意向客户详情
		// customerdetail: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/customer/detail', params),
		
		
		// // 分页查询APP用户
		// memberpage: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/member/page', params),
		// // 查询VIP类型列表
		// cardTypelist: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/member/cardType/list', params),
		// // APP用户详情
		// memberdetail: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/member/detail', params),
		// // APP用户手机号查询
		// getmembermobile: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/member/mobile/get', params),
		// // VIP开通记录分页查询
		// vipOpenRecord: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/vipOpenRecord/page', params),
		// // VIP开通记录详情
		// vipOpenRecorddetail: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/vipOpenRecord/detail', params),
		// // 查询VIP套餐列表
		// vipOpenRecordList: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/vipOpenRecord/list', params),
		// // 选择VIP套餐
		// vipOpenRecordSelect: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/vipOpenRecord/select', params),
		// // 认证记录分页查询
		// authRecord: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/authRecord/page', params),
		// // 认证记录详情
		// authRecordDetail: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/authRecord/detail', params),
		// // 服务记录分页查询
		// serviceRecord: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/serviceRecord/page', params),
		// // 服务记录详情
		// serviceRecordDetail: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/serviceRecord/detail', params),
		// // APP用户查询
		// memberGet: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/member/get', params),
		// // 服务类型集合
		// allServiceTypes: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/enum/allServiceTypes', params),
		// // 认证类型集合
		// allAuthTypes: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/enum/allAuthTypes', params),
		// // VIP开通记录新增
		// vipOpenRecordAdd: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/vipOpenRecord/add', params),
		// // 认证记录新增
		// authRecordAdd: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/authRecord/add', params),
		// // 服务记录新增
		// serviceRecordAdd: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/serviceRecord/add', params),
		// // 加盟记录新增修改
		// joinOrderAdd: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/joinOrder/addUpdate', params),
		// // 加盟记录提交审核
		// joinOrderCommit: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/joinOrder/commit', params),
		// // 加盟记录分页查询
		// joinOrderPage: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/joinOrder/page', params),
		// // 加盟记录详情
		// joinOrderDetail: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/joinOrder/detail', params),
		// // 加盟记录编辑数据
		// joinOrderDetailForUpdate: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/joinOrder/detailForUpdate', params),
		// // 我的团队分页查询
		// miniUserPage: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/miniUser/page', params),
		// // 用户详情
		// miniUserDetail: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/miniUser/detail', params),
		// // 上级信息
		// miniUsersuperDetail: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/miniUser/superDetail', params),
		// // 我的订单分页查询
		// orderPageOrder: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/order/pageOrder', params),
		// // 订单详情
		// orderDetail: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/order/detail', params),
		// // 团队订单分页查询
		// orderpageTeamOrder: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/order/pageTeamOrder', params),
		// // 佣金来源分类查询
		// reasonList: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/reasonList', params),
		// // 佣金分页查询
		// commissionPage: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/page', params),
		// // 佣金余额查询
		// balanceGet: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/balance/get', params),
		// // 提现方式查询
		// cashAccountList: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/cashAccount/list', params),
		// // 佣金提现规则查询
		// ruleGet: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/cash/rule/get', params),
		// // 提现手续费计算
		// cashCal: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/cash/cal', params),
		// // 脱敏手机号查询（用于发送验证码展示）
		// mobileGet: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/mobile/get', params),
		// // 提现验证码发送
		// captchaSend: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/captcha/send', params),
		// // 佣金提现
		// commissionCash: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/cash', params),
		// // 佣金提现记录分页查询
		// cashRecordPage: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/cashRecord/page', params),
		// // 佣金提现记录详情查询
		// cashRecordDetail: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/commission/cashRecord/detail', params),
		// // 姓名查询
		// realNameGet: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/cashAccount/realName/get', params),
		// // 提现账户解绑
		// cashAccountUnbind: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/cashAccount/unbind', params),
		// // 提现账户绑定
		// cashAccountbind: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/cashAccount/bind', params),
		// // 查询朋友圈分类列表
		// friendCircleCategory: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/friendCircleCategory/list', params),
		// // 查询话术分类列表
		// speechCategory: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/speechCategory/list', params),
		// // 话术分页查询
		// speechPage: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/speech/page', params),
		// // 朋友圈素材分页查询
		// friendCirclePage: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/mini/friendCircle/page', params),
		
		
		
		// new
		
		// 分页查询分享会员
		shareMemberPage: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/share/member/page', params),
		// 查询分享会员详情信息
		shareMemberDetail: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/share/member/detail', params),
		// 查询红娘信息
		miniUserInfo: (params = {}) => vm.$u.postJson(config.adminPath + '/mini/share/member/miniUser/get', params),
	};

}

export default {
	install
}
